﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace bai5thuchanh2
{
    class Program
    {
        static void Main(string[] args)
        {
            nguoi [] nguoimoi=new nguoi[5];
            for (int i = 0; i < 5; i++)
            {
                nguoimoi[i] = new nguoi();
                nguoimoi[i].nhap();
    
            
            }
            for (int i = 0; i < 5; i++)
            {
                nguoimoi[i].xuat();
            }
            for (int i = 0; i < 5; i++)
            {
                if (nguoimoi[i].ChieuCao > 1.7 && nguoimoi[i].CanNang >= 70)
                {
                    nguoimoi[i].xuat();
                }
            }
            float m;
            for (int i = 0; i < 5; i++)
            {
                if (nguoimoi[i].CanNang / nguoimoi[i].ChieuCao * nguoimoi[i].ChieuCao < 20.0)
                {
                    Console.WriteLine("hoten:" + nguoimoi[i].HoTen);
                    m = 20 * nguoimoi[i].ChieuCao * nguoimoi[i].ChieuCao - nguoimoi[i].CanNang;
                    Console.WriteLine(" so can nang tang them la:" + m);
                }
            }
            Console.ReadLine();


        }
    }
}
